home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
wais
/
ftw
/
Imakefile
< prev
next >
Wrap
Makefile
|
1995-05-09
|
2KB
|
96 lines
# @(#) Imakefile 10.2 93/09/18
#
# PD version of scandir/ftw/alphasort
#
# S001 14-Mar-1995 kamalm@sco.com
# - adjusted CFLAGS for SCO 5.0 build
# - tweaked to only build target libraries (for Mosaic), not utilities
#
# S000 18 Sep 1993 rr@sco.com
# placed under SCCS and turned into an Imakefile
#
# $Log: Makefile,v $
# Revision 5.1 1992/07/10 22:09:54 curtisg
# Distributed version
#
# Revision 1.9 92/04/03 12:58:38 morris
# made it work with gcc
#
# Revision 1.8 92/03/02 14:34:53 jonathan
# changed an errant rm to $(RM), per balze@think.com
#
# Revision 1.7 92/02/16 18:39:35 jonathan
# Added directives for anytostring
#
#
#
SHELL=/bin/sh
RM = /bin/rm -f
CC = cc
CFLAGS = -b elf -O -I../ir -I. -DSECURE_SERVER -DRELEVANCE_FEEDBACK -DUSG -DSYSV
LIBDIR = ../lib
BINDIR = ../bin
AR = ar
ARFLAGS = r
#on SGIs set this to true
RANLIB = true
EXTHDRS = /usr/include/stdio.h \
/usr/include/sys/stat.h \
/usr/include/sys/types.h
HDRS = pdftw.h
TRUNC = $(BINDIR)/trunc
ANY = $(BINDIR)/stringtoany
TOBJ = trunc.o
AOBJ = stringtoany.o
LIBRARY = $(LIBDIR)/libftw.a
OBJS = alphasort.o \
freedir.o \
ftw.o \
scandir.o
SRCS = alphasort.c \
freedir.c \
ftw.c \
scandir.c
TESTOBJS = ftwtest.o ftwtest scantest.o scantest
all:: $(LIBRARY) # $(TRUNC) $(ANY) # S001
$(LIBRARY):: $(OBJS)
-mkdir -p $(LIBDIR)
$(RM) -f $@
$(AR) $(ARFLAGS) $@ $(OBJS)
$(RANLIB) $(LIBRARY)
$(TRUNC):: $(TOBJ)
$(CC) -o $@ $(TOBJ)
$(ANY):: $(AOBJ)
$(CC) -o $@ $(AOBJ)
test:: ftwtest.o scantest.o
$(CC) $(CFLAGS) ftwtest.o $(LIBRARY) -o ftwtest
$(CC) $(CFLAGS) scantest.o $(LIBRARY) -o scantest
ftwtest /tmp
scantest /tmp
clean::
$(RM) *.o
$(RM) *~
$(RM) \#*\#
$(RM) .nfs* # NFS Lossage
$(RM) core
$(RM) $(OBJS) $(TOBJ) $(TESTOBJS) $(LIBRARY) $(TRUNC) $(ANY)
DependTarget()